<?php
/**
 * Formulaire de consultation de liste de diffusion
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_mailinglist_search
 */
$listAttributes = array ();
foreach ($lists as $list){
    $listAttributes[$list->id_contacts] = $list->name;
}
echo form_open();
echo form_fieldset('Display a mailing list content');
echo '<table id="table_mailList">';
echo '<tr>';
echo '<th>Display contacts within</th>';
echo '<td>'.form_dropdown('select_list', $listAttributes).'</td>';
echo '</tr>';
echo '</table>';
echo form_submit(null, 'Display');
echo form_fieldset_close();
echo form_close();
?>